package com.opticon.vaadinR.factory;

import com.opticon.vaadinR.ui.panel.NumericTableTab;
import com.opticon.vaadinR.ui.panel.SimplePNGTab;
import com.opticon.vaadinR.ui.panel.SimpleTableTab;
import com.opticon.vaadinR.ui.panel.SimpleTextTab;
import com.vaadin.Application;

import java.io.File;

/**
 * This class is a
 */
public class TabFactory {

    public static SimplePNGTab makeGraphTab(File aFile, Application aApplication) {
        return new SimplePNGTab(aFile, aApplication);
    }

    public static SimpleTableTab makeTableTab(File aFile, Application aApplication) {
        return new SimpleTableTab(aFile, aApplication);
    }

    public static NumericTableTab makeNumericTableTab(File aFile, Application aApplication, int[] aNumericColumns) {
        return new NumericTableTab(aFile, aApplication, aNumericColumns);
    }

    public static SimpleTextTab makeTextTab(File aFile, Application aApplication) {
        return new SimpleTextTab(aFile);
    }
}
